
<%@ page import="com.macrosolution.exdebito.FileDocument" %>
<!DOCTYPE html>
<html>

<head>
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'fileDocument.label', default: 'FileDocument')}" />
	<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>

<body>

<section id="list-fileDocument" class="first">

	<table class="table table-bordered margin-top-medium">
		<thead>
			<tr>
			
				<g:sortableColumn property="comments" title="${message(code: 'fileDocument.comments.label', default: 'Comments')}" />
			
				<g:sortableColumn property="dateCreated" title="${message(code: 'fileDocument.dateCreated.label', default: 'Date Created')}" />
			
				<th><g:message code="fileDocument.documentType.label" default="Document Type" /></th>
			
				<g:sortableColumn property="fileName" title="${message(code: 'fileDocument.fileName.label', default: 'File Name')}" />
			
				<g:sortableColumn property="filePath" title="${message(code: 'fileDocument.filePath.label', default: 'File Path')}" />
			
				<g:sortableColumn property="fileSize" title="${message(code: 'fileDocument.fileSize.label', default: 'File Size')}" />
			
			</tr>
		</thead>
		<tbody>
		<g:each in="${fileDocumentInstanceList}" status="i" var="fileDocumentInstance">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
			
				<td><g:link action="show" id="${fileDocumentInstance.id}">${fieldValue(bean: fileDocumentInstance, field: "comments")}</g:link></td>
			
				<td><g:formatDate date="${fileDocumentInstance.dateCreated}" /></td>
			
				<td>${fieldValue(bean: fileDocumentInstance, field: "documentType")}</td>
			
				<td>${fieldValue(bean: fileDocumentInstance, field: "fileName")}</td>
			
				<td>${fieldValue(bean: fileDocumentInstance, field: "filePath")}</td>
			
				<td>${fieldValue(bean: fileDocumentInstance, field: "fileSize")}</td>
			
			</tr>
		</g:each>
		</tbody>
	</table>
	<div>
		<bs:paginate total="${fileDocumentInstanceCount}" />
	</div>
</section>

</body>

</html>
